package com.hgw.Demo01_proxyPattern.dynamicProxy_IH;

/**
 * Data time:2021/12/13 18:09
 * StudentID:2019112118
 * Author:hgw
 * Description: 用户DAO类，具体主题角色
 */
public class UserDAO implements AbstractUserDAO{
    @Override
    public Boolean findUserById(String userId) {
        if (userId.equalsIgnoreCase("张无忌")) {
            System.out.println("查询ID为" + userId + "的用户信息成功！");
            return true;
        } else {
            System.out.println("查询ID为" + userId + "的用户信息失败！");
            return false;
        }
    }
}
